<template>
    <div class="uploadIndex">
        <el-button>Upload</el-button>
        <el-upload class="el-upload" action="" :file-list="fileList"></el-upload>
        <el-col>
            <el-table  :data="fileList" :stripe="true">
                <el-table-column prop="personId" label="流水号"></el-table-column>


                <el-table-column prop="male" label="性别" :formatter="((row,col,cell)=>{return '男'})">
                </el-table-column>
                <el-table-column label="操作" width="200" fixed="right">
                    <template slot-scope="props">
                        <el-button-group>
                            <el-button type="primary" icon="el-icon-edit"
                                       @click="update(props.row.personId)">编辑
                            </el-button>
                            <el-button type="warning" icon="el-icon-delete">删除
                            </el-button>
                        </el-button-group>
                    </template>
                </el-table-column>
            </el-table>
        </el-col>
    </div>
</template>

<script>
    // import New from './components/New.vue';
    // import {mapState} from 'vuex';
    export default {

        name: "Upload",
        components: {
            // New,Old,
        },
        props: {
            sampleP: {
                type: Number,
                default: 0
            },
        },
        data() {
            return {
                sampleD: 'value',
                fileList:[],

            }
        },
        computed: {

            // sampleC() {
            //     return this.sampleD+'--';
            // }
        },
        created() {
        },
        mounted() {
        },
        methods: {
            sampleM() {

            }
        },
        watch: {
            // sampleC(newValue, oldValue) {
            //
            // }
        },
    }
</script>

<style scoped>
    /*<style lang='scss' scoped>*/
    .uploadIndex{
        background-color: rgba(124,255,114,0.72);
    }
</style>